package com.dong.common.io;

import java.io.IOException;
import java.net.Socket;
import java.nio.charset.StandardCharsets;

public class BIOClientTest {
    public static void main(String[] args) throws IOException {
        int port = 8080 ;
        Socket client = new Socket("127.0.0.1",port);
        client.getOutputStream().write("hello BIO ".getBytes(StandardCharsets.UTF_8));
        client.close();
    }
}
